package com.itkaien.ssmconformitymaven;

import com.itkaien.ssmconformitymaven.beanProfile.Dog;
import com.itkaien.ssmconformitymaven.beanProfile.People;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan

/**
 * 1.标识环境
 *    dev:开发环境 test:测试环境 prod:生产环境 default:默认环境
 *    默认开发环境
 * 激活环境   1.在application.yaml中配置spring.profiles.active=dev
 *
 */
public class SsmconformityMavenApplication {




    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SsmconformityMavenApplication.class, args);
//
//        People bean = context.getBean(People.class);
//
//        System.out.println(bean+"：：：people Bean  ");
//
//        Dog dog = context.getBean(Dog.class);
//
//        System.out.println(bean+"：：：dog Bean  ");
    }

}
